package com.sly.demoim.constant;

/**
 * 消息状态
 *
 * @author SLY
 * @date 2022/7/24
 */
public enum MessageSaveStatus {

    /** 消息已保存 */
    SAVE(10, "已保存"),
    /** 消息保存失败 */
    SAVE_FAILED(20, "发送失败"),
    ;
    private final Integer code;
    private final String name;

    MessageSaveStatus(Integer code, String name){
        this.code = code;
        this.name = name;
    }

    public Integer getCode(){
        return code;
    }

    public String getName(){
        return name;
    }
}
